<!DOCTYPE html>
<html lang="en-US">
<head>
    <meta charset="UTF-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="language" content="en" />
        <link href="./assets/ffd55088/css/bootstrap.css" rel="stylesheet">
<link href="./assets/5cf9384a/solarized_light.css" rel="stylesheet">
<link href="./assets/6c54116e/style.css" rel="stylesheet">
<script src="./assets/a44cef0f/jquery.js"></script>
<script src="./assets/ffd55088/js/bootstrap.js"></script>
<script src="./assets/8ac4e28a/jssearch.js"></script>    <title>ActiveField, yii\bootstrap\ActiveField - Yii Framework 2.0 API Documentation</title>
</head>
<body>

<div class="wrap">
    <nav id="w10653" class="navbar-inverse navbar-fixed-top navbar" role="navigation"><div class="navbar-header"><button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#w10653-collapse"><span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span></button><a class="navbar-brand" href="./index.html">Yii Framework 2.0 API Documentation</a></div><div id="w10653-collapse" class="collapse navbar-collapse"><ul id="w10654" class="navbar-nav nav"><li><a href="./index.html">Class reference</a></li>
<li class="dropdown"><a class="dropdown-toggle" href="#" data-toggle="dropdown">Extensions <b class="caret"></b></a><ul id="w10655" class="dropdown-menu"><li><a href="./ext-apidoc-index.html" tabindex="-1">apidoc</a></li>
<li><a href="./ext-authclient-index.html" tabindex="-1">authclient</a></li>
<li><a href="./ext-bootstrap-index.html" tabindex="-1">bootstrap</a></li>
<li><a href="./ext-codeception-index.html" tabindex="-1">codeception</a></li>
<li><a href="./ext-debug-index.html" tabindex="-1">debug</a></li>
<li><a href="./ext-elasticsearch-index.html" tabindex="-1">elasticsearch</a></li>
<li><a href="./ext-faker-index.html" tabindex="-1">faker</a></li>
<li><a href="./ext-gii-index.html" tabindex="-1">gii</a></li>
<li><a href="./ext-imagine-index.html" tabindex="-1">imagine</a></li>
<li><a href="./ext-jui-index.html" tabindex="-1">jui</a></li>
<li><a href="./ext-mongodb-index.html" tabindex="-1">mongodb</a></li>
<li><a href="./ext-redis-index.html" tabindex="-1">redis</a></li>
<li><a href="./ext-smarty-index.html" tabindex="-1">smarty</a></li>
<li><a href="./ext-sphinx-index.html" tabindex="-1">sphinx</a></li>
<li><a href="./ext-swiftmailer-index.html" tabindex="-1">swiftmailer</a></li>
<li><a href="./ext-twig-index.html" tabindex="-1">twig</a></li></ul></li>
<li><a href="./guide-README.html">Guide</a></li></ul><div class="navbar-form navbar-left" role="search">
  <div class="form-group">
    <input id="searchbox" type="text" class="form-control" placeholder="Search">
  </div>
</div>
</div></nav>
    <div id="search-resultbox" style="display: none;" class="modal-content">
        <ul id="search-results">
        </ul>
    </div>

    
<div class="row">
    <div class="col-md-3">
                <div id="navigation" class="list-group"><a class="list-group-item active" href="#navigation-10652" data-toggle="collapse" data-parent="#navigation">yii\bootstrap <b class="caret"></b></a><div id="navigation-10652" class="submenu panel-collapse collapse in"><a class="list-group-item active" href="./yii-bootstrap-activefield.html">ActiveField</a>
<a class="list-group-item" href="./yii-bootstrap-activeform.html">ActiveForm</a>
<a class="list-group-item" href="./yii-bootstrap-alert.html">Alert</a>
<a class="list-group-item" href="./yii-bootstrap-basehtml.html">BaseHtml</a>
<a class="list-group-item" href="./yii-bootstrap-bootstrapasset.html">BootstrapAsset</a>
<a class="list-group-item" href="./yii-bootstrap-bootstrappluginasset.html">BootstrapPluginAsset</a>
<a class="list-group-item" href="./yii-bootstrap-bootstrapthemeasset.html">BootstrapThemeAsset</a>
<a class="list-group-item" href="./yii-bootstrap-bootstrapwidgettrait.html">BootstrapWidgetTrait</a>
<a class="list-group-item" href="./yii-bootstrap-button.html">Button</a>
<a class="list-group-item" href="./yii-bootstrap-buttondropdown.html">ButtonDropdown</a>
<a class="list-group-item" href="./yii-bootstrap-buttongroup.html">ButtonGroup</a>
<a class="list-group-item" href="./yii-bootstrap-carousel.html">Carousel</a>
<a class="list-group-item" href="./yii-bootstrap-collapse.html">Collapse</a>
<a class="list-group-item" href="./yii-bootstrap-dropdown.html">Dropdown</a>
<a class="list-group-item" href="./yii-bootstrap-html.html">Html</a>
<a class="list-group-item" href="./yii-bootstrap-inputwidget.html">InputWidget</a>
<a class="list-group-item" href="./yii-bootstrap-modal.html">Modal</a>
<a class="list-group-item" href="./yii-bootstrap-nav.html">Nav</a>
<a class="list-group-item" href="./yii-bootstrap-navbar.html">NavBar</a>
<a class="list-group-item" href="./yii-bootstrap-progress.html">Progress</a>
<a class="list-group-item" href="./yii-bootstrap-tabs.html">Tabs</a>
<a class="list-group-item" href="./yii-bootstrap-togglebuttongroup.html">ToggleButtonGroup</a>
<a class="list-group-item" href="./yii-bootstrap-widget.html">Widget</a></div></div>    </div>
    <div class="col-md-9 api-content" role="main">
        <h1>Class yii\bootstrap\ActiveField</h1>
<div class="top-nav">
    <a href="index.html">All Classes</a>
            | <a href="#properties">Properties</a>
                | <a href="#methods">Methods</a>
            </div>

<table class="summaryTable docClass table table-bordered">
    <colgroup>
        <col class="col-name" />
        <col class="col-value" />
    </colgroup>
            <tr><th>Inheritance</th><td><a href="yii-bootstrap-activefield.html">yii\bootstrap\ActiveField</a> &raquo;
<a href="yii-widgets-activefield.html">yii\widgets\ActiveField</a> &raquo;
<a href="yii-base-component.html">yii\base\Component</a> &raquo;
<a href="yii-base-object.html">yii\base\Object</a></td></tr>
                <tr><th>Implements</th><td><a href="yii-base-configurable.html">yii\base\Configurable</a></td></tr>
                                    <tr><th>Available since version</th><td>2.0</td></tr>
                    <tr>
          <th>Source Code</th>
          <td><a href="https://github.com/yiisoft/yii2-bootstrap/blob/master/ActiveField.php">https://github.com/yiisoft/yii2-bootstrap/blob/master/ActiveField.php</a></td>
        </tr>
    </table>

<div class="class-description">
    <p><strong>A Bootstrap 3 enhanced version of <a href="yii-widgets-activefield.html">yii\widgets\ActiveField</a>.</strong></p>
    <p>This class adds some useful features to <a href="yii-widgets-activefield.html">ActiveField</a> to render all
sorts of Bootstrap 3 form fields in different form layouts:</p>
<ul>
<li><a href="yii-bootstrap-activefield.html#$inputTemplate-detail">$inputTemplate</a> is an optional template to render complex inputs, for example input groups</li>
<li><a href="yii-bootstrap-activefield.html#$horizontalCssClasses-detail">$horizontalCssClasses</a> defines the CSS grid classes to add to label, wrapper, error and hint
in horizontal forms</li>
<li><a href="yii-bootstrap-activefield.html#inline()-detail">inline()</a>/<a href="yii-bootstrap-activefield.html#inline()-detail">inline()</a> is used to render inline <a href="yii-bootstrap-activefield.html#checkboxList()-detail">checkboxList()</a> and <a href="yii-bootstrap-activefield.html#radioList()-detail">radioList()</a></li>
<li><a href="yii-bootstrap-activefield.html#$enableError-detail">$enableError</a> can be set to <code>false</code> to disable to the error</li>
<li><a href="yii-bootstrap-activefield.html#$enableLabel-detail">$enableLabel</a> can be set to <code>false</code> to disable to the label</li>
<li><a href="yii-bootstrap-activefield.html#label()-detail">label()</a> can be used with a <code>boolean</code> argument to enable/disable the label</li>
</ul>
<p>There are also some new placeholders that you can use in the <a href="yii-widgets-activefield.html#$template-detail">$template</a> configuration:</p>
<ul>
<li><code>{beginLabel}</code>: the opening label tag</li>
<li><code>{labelTitle}</code>: the label title for use with <code>{beginLabel}</code>/<code>{endLabel}</code></li>
<li><code>{endLabel}</code>: the closing label tag</li>
<li><code>{beginWrapper}</code>: the opening wrapper tag</li>
<li><code>{endWrapper}</code>: the closing wrapper tag</li>
</ul>
<p>The wrapper tag is only used for some layouts and form elements.</p>
<p>Note that some elements use slightly different defaults for <a href="yii-widgets-activefield.html#$template-detail">$template</a> and other options.
You may want to override those predefined templates for checkboxes, radio buttons, checkboxLists
and radioLists in the <a href="yii-widgets-activeform.html#$fieldConfig-detail">fieldConfig</a> of the
<a href="yii-widgets-activeform.html">yii\widgets\ActiveForm</a>:</p>
<ul>
<li><a href="yii-bootstrap-activefield.html#$checkboxTemplate-detail">$checkboxTemplate</a> the template for checkboxes in default layout</li>
<li><a href="yii-bootstrap-activefield.html#$radioTemplate-detail">$radioTemplate</a> the template for radio buttons in default layout</li>
<li><a href="yii-bootstrap-activefield.html#$horizontalCheckboxTemplate-detail">$horizontalCheckboxTemplate</a> the template for checkboxes in horizontal layout</li>
<li><a href="yii-bootstrap-activefield.html#$horizontalRadioTemplate-detail">$horizontalRadioTemplate</a> the template for radio buttons in horizontal layout</li>
<li><a href="yii-bootstrap-activefield.html#$inlineCheckboxListTemplate-detail">$inlineCheckboxListTemplate</a> the template for inline checkboxLists</li>
<li><a href="yii-bootstrap-activefield.html#$inlineRadioListTemplate-detail">$inlineRadioListTemplate</a> the template for inline radioLists</li>
</ul>
<p>Example:</p>
<pre><code class="hljs php language-php"><span class="hljs-keyword">use</span> <span class="hljs-title">yii</span>\<span class="hljs-title">bootstrap</span>\<span class="hljs-title">ActiveForm</span>;

<span class="hljs-variable">$form</span> = ActiveForm::begin([<span class="hljs-string">'layout'</span> =&gt; <span class="hljs-string">'horizontal'</span>]);

<span class="hljs-comment">// Form field without label</span>
<span class="hljs-keyword">echo</span> <span class="hljs-variable">$form</span>-&gt;field(<span class="hljs-variable">$model</span>, <span class="hljs-string">'demo'</span>, [
    <span class="hljs-string">'inputOptions'</span> =&gt; [
        <span class="hljs-string">'placeholder'</span> =&gt; <span class="hljs-variable">$model</span>-&gt;getAttributeLabel(<span class="hljs-string">'demo'</span>),
    ],
])-&gt;label(<span class="hljs-keyword">false</span>);

<span class="hljs-comment">// Inline radio list</span>
<span class="hljs-keyword">echo</span> <span class="hljs-variable">$form</span>-&gt;field(<span class="hljs-variable">$model</span>, <span class="hljs-string">'demo'</span>)-&gt;inline()-&gt;radioList(<span class="hljs-variable">$items</span>);

<span class="hljs-comment">// Control sizing in horizontal mode</span>
<span class="hljs-keyword">echo</span> <span class="hljs-variable">$form</span>-&gt;field(<span class="hljs-variable">$model</span>, <span class="hljs-string">'demo'</span>, [
    <span class="hljs-string">'horizontalCssClasses'</span> =&gt; [
        <span class="hljs-string">'wrapper'</span> =&gt; <span class="hljs-string">'col-sm-2'</span>,
    ]
]);

<span class="hljs-comment">// With 'default' layout you would use 'template' to size a specific field:</span>
<span class="hljs-keyword">echo</span> <span class="hljs-variable">$form</span>-&gt;field(<span class="hljs-variable">$model</span>, <span class="hljs-string">'demo'</span>, [
    <span class="hljs-string">'template'</span> =&gt; <span class="hljs-string">'{label} &lt;div class="row"&gt;&lt;div class="col-sm-4"&gt;{input}{error}{hint}&lt;/div&gt;&lt;/div&gt;'</span>
]);

<span class="hljs-comment">// Input group</span>
<span class="hljs-keyword">echo</span> <span class="hljs-variable">$form</span>-&gt;field(<span class="hljs-variable">$model</span>, <span class="hljs-string">'demo'</span>, [
    <span class="hljs-string">'inputTemplate'</span> =&gt; <span class="hljs-string">'&lt;div class="input-group"&gt;&lt;span class="input-group-addon"&gt;@&lt;/span&gt;{input}&lt;/div&gt;'</span>,
]);

ActiveForm::end();
</code></pre>

    <p>See also:</p><ul><li><a href="yii-bootstrap-activeform.html">yii\bootstrap\ActiveForm</a></li><li><a href="http://getbootstrap.com/css/#forms">http://getbootstrap.com/css/#forms</a></li></ul></div>

<a id="properties"></a>

<div class="summary doc-property">
<h2>Public Properties</h2>

<p><a href="#" class="toggle">Hide inherited properties</a></p>

<table class="summary-table table table-striped table-bordered table-hover">
<colgroup>
    <col class="col-property" />
    <col class="col-type" />
    <col class="col-description" />
    <col class="col-defined" />
</colgroup>
<tr>
  <th>Property</th><th>Type</th><th>Description</th><th>Defined By</th>
</tr>
        <tr class="inherited" id="$attribute">
        <td><a href="yii-widgets-activefield.html#$attribute-detail">$attribute</a></td>
        <td><a href="http://www.php.net/language.types.string">string</a></td>
        <td>The model attribute that this field is associated with</td>
        <td><a href="yii-widgets-activefield.html">yii\widgets\ActiveField</a></td>
    </tr>
            <tr class="inherited" id="$behaviors">
        <td><a href="yii-base-component.html#$behaviors-detail">$behaviors</a></td>
        <td><a href="yii-base-behavior.html">yii\base\Behavior</a>[]</td>
        <td>List of behaviors attached to this component</td>
        <td><a href="yii-base-component.html">yii\base\Component</a></td>
    </tr>
            <tr id="$checkboxTemplate">
        <td><a href="yii-bootstrap-activefield.html#$checkboxTemplate-detail">$checkboxTemplate</a></td>
        <td><a href="http://www.php.net/language.types.string">string</a></td>
        <td>The template for checkboxes in default layout</td>
        <td><a href="yii-bootstrap-activefield.html">yii\bootstrap\ActiveField</a></td>
    </tr>
            <tr class="inherited" id="$enableAjaxValidation">
        <td><a href="yii-widgets-activefield.html#$enableAjaxValidation-detail">$enableAjaxValidation</a></td>
        <td><a href="http://www.php.net/language.types.boolean">boolean</a></td>
        <td>Whether to enable AJAX-based data validation.</td>
        <td><a href="yii-widgets-activefield.html">yii\widgets\ActiveField</a></td>
    </tr>
            <tr class="inherited" id="$enableClientValidation">
        <td><a href="yii-widgets-activefield.html#$enableClientValidation-detail">$enableClientValidation</a></td>
        <td><a href="http://www.php.net/language.types.boolean">boolean</a></td>
        <td>Whether to enable client-side data validation.</td>
        <td><a href="yii-widgets-activefield.html">yii\widgets\ActiveField</a></td>
    </tr>
            <tr id="$enableError">
        <td><a href="yii-bootstrap-activefield.html#$enableError-detail">$enableError</a></td>
        <td><a href="http://www.php.net/language.types.boolean">boolean</a></td>
        <td>Whether to render the error.</td>
        <td><a href="yii-bootstrap-activefield.html">yii\bootstrap\ActiveField</a></td>
    </tr>
            <tr id="$enableLabel">
        <td><a href="yii-bootstrap-activefield.html#$enableLabel-detail">$enableLabel</a></td>
        <td><a href="http://www.php.net/language.types.boolean">boolean</a></td>
        <td>Whether to render the label.</td>
        <td><a href="yii-bootstrap-activefield.html">yii\bootstrap\ActiveField</a></td>
    </tr>
            <tr class="inherited" id="$errorOptions">
        <td><a href="yii-widgets-activefield.html#$errorOptions-detail">$errorOptions</a></td>
        <td><a href="http://www.php.net/language.types.array">array</a></td>
        <td>The default options for the error tags.</td>
        <td><a href="yii-widgets-activefield.html">yii\widgets\ActiveField</a></td>
    </tr>
            <tr class="inherited" id="$form">
        <td><a href="yii-widgets-activefield.html#$form-detail">$form</a></td>
        <td><a href="yii-widgets-activeform.html">yii\widgets\ActiveForm</a></td>
        <td>The form that this field is associated with.</td>
        <td><a href="yii-widgets-activefield.html">yii\widgets\ActiveField</a></td>
    </tr>
            <tr class="inherited" id="$hintOptions">
        <td><a href="yii-widgets-activefield.html#$hintOptions-detail">$hintOptions</a></td>
        <td><a href="http://www.php.net/language.types.array">array</a></td>
        <td>The default options for the hint tags.</td>
        <td><a href="yii-widgets-activefield.html">yii\widgets\ActiveField</a></td>
    </tr>
            <tr id="$horizontalCheckboxTemplate">
        <td><a href="yii-bootstrap-activefield.html#$horizontalCheckboxTemplate-detail">$horizontalCheckboxTemplate</a></td>
        <td><a href="http://www.php.net/language.types.string">string</a></td>
        <td>The template for checkboxes in horizontal layout</td>
        <td><a href="yii-bootstrap-activefield.html">yii\bootstrap\ActiveField</a></td>
    </tr>
            <tr id="$horizontalCssClasses">
        <td><a href="yii-bootstrap-activefield.html#$horizontalCssClasses-detail">$horizontalCssClasses</a></td>
        <td><a href="http://www.php.net/language.types.null">null</a>|<a href="http://www.php.net/language.types.array">array</a></td>
        <td>CSS grid classes for horizontal layout.</td>
        <td><a href="yii-bootstrap-activefield.html">yii\bootstrap\ActiveField</a></td>
    </tr>
            <tr id="$horizontalRadioTemplate">
        <td><a href="yii-bootstrap-activefield.html#$horizontalRadioTemplate-detail">$horizontalRadioTemplate</a></td>
        <td><a href="http://www.php.net/language.types.string">string</a></td>
        <td>The template for radio buttons in horizontal layout</td>
        <td><a href="yii-bootstrap-activefield.html">yii\bootstrap\ActiveField</a></td>
    </tr>
            <tr id="$inline">
        <td><a href="yii-bootstrap-activefield.html#$inline-detail">$inline</a></td>
        <td><a href="http://www.php.net/language.types.boolean">boolean</a></td>
        <td>Whether to render <a href="yii-bootstrap-activefield.html#checkboxList()-detail">checkboxList()</a> and <a href="yii-bootstrap-activefield.html#radioList()-detail">radioList()</a> inline.</td>
        <td><a href="yii-bootstrap-activefield.html">yii\bootstrap\ActiveField</a></td>
    </tr>
            <tr id="$inlineCheckboxListTemplate">
        <td><a href="yii-bootstrap-activefield.html#$inlineCheckboxListTemplate-detail">$inlineCheckboxListTemplate</a></td>
        <td><a href="http://www.php.net/language.types.string">string</a></td>
        <td>The template for inline checkboxLists</td>
        <td><a href="yii-bootstrap-activefield.html">yii\bootstrap\ActiveField</a></td>
    </tr>
            <tr id="$inlineRadioListTemplate">
        <td><a href="yii-bootstrap-activefield.html#$inlineRadioListTemplate-detail">$inlineRadioListTemplate</a></td>
        <td><a href="http://www.php.net/language.types.string">string</a></td>
        <td>The template for inline radioLists</td>
        <td><a href="yii-bootstrap-activefield.html">yii\bootstrap\ActiveField</a></td>
    </tr>
            <tr class="inherited" id="$inputOptions">
        <td><a href="yii-widgets-activefield.html#$inputOptions-detail">$inputOptions</a></td>
        <td><a href="http://www.php.net/language.types.array">array</a></td>
        <td>The default options for the input tags.</td>
        <td><a href="yii-widgets-activefield.html">yii\widgets\ActiveField</a></td>
    </tr>
            <tr id="$inputTemplate">
        <td><a href="yii-bootstrap-activefield.html#$inputTemplate-detail">$inputTemplate</a></td>
        <td><a href="http://www.php.net/language.types.string">string</a>|<a href="http://www.php.net/language.types.null">null</a></td>
        <td>Optional template to render the <code>{input}</code> placeholder content</td>
        <td><a href="yii-bootstrap-activefield.html">yii\bootstrap\ActiveField</a></td>
    </tr>
            <tr class="inherited" id="$labelOptions">
        <td><a href="yii-widgets-activefield.html#$labelOptions-detail">$labelOptions</a></td>
        <td><a href="http://www.php.net/language.types.array">array</a></td>
        <td>The default options for the label tags.</td>
        <td><a href="yii-widgets-activefield.html">yii\widgets\ActiveField</a></td>
    </tr>
            <tr class="inherited" id="$model">
        <td><a href="yii-widgets-activefield.html#$model-detail">$model</a></td>
        <td><a href="yii-base-model.html">yii\base\Model</a></td>
        <td>The data model that this field is associated with</td>
        <td><a href="yii-widgets-activefield.html">yii\widgets\ActiveField</a></td>
    </tr>
            <tr class="inherited" id="$options">
        <td><a href="yii-widgets-activefield.html#$options-detail">$options</a></td>
        <td><a href="http://www.php.net/language.types.array">array</a></td>
        <td>The HTML attributes (name-value pairs) for the field container tag.</td>
        <td><a href="yii-widgets-activefield.html">yii\widgets\ActiveField</a></td>
    </tr>
            <tr class="inherited" id="$parts">
        <td><a href="yii-widgets-activefield.html#$parts-detail">$parts</a></td>
        <td><a href="http://www.php.net/language.types.array">array</a></td>
        <td>Different parts of the field (e.g. input, label).</td>
        <td><a href="yii-widgets-activefield.html">yii\widgets\ActiveField</a></td>
    </tr>
            <tr id="$radioTemplate">
        <td><a href="yii-bootstrap-activefield.html#$radioTemplate-detail">$radioTemplate</a></td>
        <td><a href="http://www.php.net/language.types.string">string</a></td>
        <td>The template for radios in default layout</td>
        <td><a href="yii-bootstrap-activefield.html">yii\bootstrap\ActiveField</a></td>
    </tr>
            <tr class="inherited" id="$selectors">
        <td><a href="yii-widgets-activefield.html#$selectors-detail">$selectors</a></td>
        <td><a href="http://www.php.net/language.types.array">array</a></td>
        <td>The jQuery selectors for selecting the container, input and error tags.</td>
        <td><a href="yii-widgets-activefield.html">yii\widgets\ActiveField</a></td>
    </tr>
            <tr class="inherited" id="$template">
        <td><a href="yii-widgets-activefield.html#$template-detail">$template</a></td>
        <td><a href="http://www.php.net/language.types.string">string</a></td>
        <td>The template that is used to arrange the label, the input field, the error message and the hint text.</td>
        <td><a href="yii-widgets-activefield.html">yii\widgets\ActiveField</a></td>
    </tr>
            <tr class="inherited" id="$validateOnBlur">
        <td><a href="yii-widgets-activefield.html#$validateOnBlur-detail">$validateOnBlur</a></td>
        <td><a href="http://www.php.net/language.types.boolean">boolean</a></td>
        <td>Whether to perform validation when the input field loses focus.</td>
        <td><a href="yii-widgets-activefield.html">yii\widgets\ActiveField</a></td>
    </tr>
            <tr class="inherited" id="$validateOnChange">
        <td><a href="yii-widgets-activefield.html#$validateOnChange-detail">$validateOnChange</a></td>
        <td><a href="http://www.php.net/language.types.boolean">boolean</a></td>
        <td>Whether to perform validation when the value of the input field is changed.</td>
        <td><a href="yii-widgets-activefield.html">yii\widgets\ActiveField</a></td>
    </tr>
            <tr class="inherited" id="$validateOnType">
        <td><a href="yii-widgets-activefield.html#$validateOnType-detail">$validateOnType</a></td>
        <td><a href="http://www.php.net/language.types.boolean">boolean</a></td>
        <td>Whether to perform validation while the user is typing in the input field.</td>
        <td><a href="yii-widgets-activefield.html">yii\widgets\ActiveField</a></td>
    </tr>
            <tr class="inherited" id="$validationDelay">
        <td><a href="yii-widgets-activefield.html#$validationDelay-detail">$validationDelay</a></td>
        <td><a href="http://www.php.net/language.types.integer">integer</a></td>
        <td>Number of milliseconds that the validation should be delayed when the user types in the field
and <a href="yii-widgets-activefield.html#$validateOnType-detail">$validateOnType</a> is set true.</td>
        <td><a href="yii-widgets-activefield.html">yii\widgets\ActiveField</a></td>
    </tr>
            <tr id="$wrapperOptions">
        <td><a href="yii-bootstrap-activefield.html#$wrapperOptions-detail">$wrapperOptions</a></td>
        <td><a href="http://www.php.net/language.types.array">array</a></td>
        <td>Options for the wrapper tag, used in the <code>{beginWrapper}</code> placeholder</td>
        <td><a href="yii-bootstrap-activefield.html">yii\bootstrap\ActiveField</a></td>
    </tr>
    </table>
</div>

<a id="methods"></a>

<div class="summary doc-method">
<h2>Public Methods</h2>

<p><a href="#" class="toggle">Hide inherited methods</a></p>

<table class="summary-table table table-striped table-bordered table-hover">
<colgroup>
    <col class="col-method" />
    <col class="col-description" />
    <col class="col-defined" />
</colgroup>
<tr>
  <th>Method</th><th>Description</th><th>Defined By</th>
</tr>
        <tr class="inherited" id="__call()">
        <td><a href="yii-base-component.html#__call()-detail">__call()</a></td>
        <td>Calls the named method which is not a class method.</td>
        <td><a href="yii-base-component.html">yii\base\Component</a></td>
    </tr>
            <tr class="inherited" id="__clone()">
        <td><a href="yii-base-component.html#__clone()-detail">__clone()</a></td>
        <td>This method is called after the object is created by cloning an existing one.</td>
        <td><a href="yii-base-component.html">yii\base\Component</a></td>
    </tr>
            <tr id="__construct()">
        <td><a href="yii-bootstrap-activefield.html#__construct()-detail">__construct()</a></td>
        <td>Constructor.</td>
        <td><a href="yii-bootstrap-activefield.html">yii\bootstrap\ActiveField</a></td>
    </tr>
            <tr class="inherited" id="__get()">
        <td><a href="yii-base-component.html#__get()-detail">__get()</a></td>
        <td>Returns the value of a component property.</td>
        <td><a href="yii-base-component.html">yii\base\Component</a></td>
    </tr>
            <tr class="inherited" id="__isset()">
        <td><a href="yii-base-component.html#__isset()-detail">__isset()</a></td>
        <td>Checks if a property is set, i.e. defined and not null.</td>
        <td><a href="yii-base-component.html">yii\base\Component</a></td>
    </tr>
            <tr class="inherited" id="__set()">
        <td><a href="yii-base-component.html#__set()-detail">__set()</a></td>
        <td>Sets the value of a component property.</td>
        <td><a href="yii-base-component.html">yii\base\Component</a></td>
    </tr>
            <tr class="inherited" id="__toString()">
        <td><a href="yii-widgets-activefield.html#__toString()-detail">__toString()</a></td>
        <td>PHP magic method that returns the string representation of this object.</td>
        <td><a href="yii-widgets-activefield.html">yii\widgets\ActiveField</a></td>
    </tr>
            <tr class="inherited" id="__unset()">
        <td><a href="yii-base-component.html#__unset()-detail">__unset()</a></td>
        <td>Sets a component property to be null.</td>
        <td><a href="yii-base-component.html">yii\base\Component</a></td>
    </tr>
                <tr class="inherited" id="attachBehavior()">
        <td><a href="yii-base-component.html#attachBehavior()-detail">attachBehavior()</a></td>
        <td>Attaches a behavior to this component.</td>
        <td><a href="yii-base-component.html">yii\base\Component</a></td>
    </tr>
            <tr class="inherited" id="attachBehaviors()">
        <td><a href="yii-base-component.html#attachBehaviors()-detail">attachBehaviors()</a></td>
        <td>Attaches a list of behaviors to the component.</td>
        <td><a href="yii-base-component.html">yii\base\Component</a></td>
    </tr>
            <tr class="inherited" id="begin()">
        <td><a href="yii-widgets-activefield.html#begin()-detail">begin()</a></td>
        <td>Renders the opening tag of the field container.</td>
        <td><a href="yii-widgets-activefield.html">yii\widgets\ActiveField</a></td>
    </tr>
            <tr class="inherited" id="behaviors()">
        <td><a href="yii-base-component.html#behaviors()-detail">behaviors()</a></td>
        <td>Returns a list of behaviors that this component should behave as.</td>
        <td><a href="yii-base-component.html">yii\base\Component</a></td>
    </tr>
            <tr class="inherited" id="canGetProperty()">
        <td><a href="yii-base-component.html#canGetProperty()-detail">canGetProperty()</a></td>
        <td>Returns a value indicating whether a property can be read.</td>
        <td><a href="yii-base-component.html">yii\base\Component</a></td>
    </tr>
            <tr class="inherited" id="canSetProperty()">
        <td><a href="yii-base-component.html#canSetProperty()-detail">canSetProperty()</a></td>
        <td>Returns a value indicating whether a property can be set.</td>
        <td><a href="yii-base-component.html">yii\base\Component</a></td>
    </tr>
            <tr id="checkbox()">
        <td><a href="yii-bootstrap-activefield.html#checkbox()-detail">checkbox()</a></td>
        <td>Renders a checkbox.</td>
        <td><a href="yii-bootstrap-activefield.html">yii\bootstrap\ActiveField</a></td>
    </tr>
            <tr id="checkboxList()">
        <td><a href="yii-bootstrap-activefield.html#checkboxList()-detail">checkboxList()</a></td>
        <td>Renders a list of checkboxes.</td>
        <td><a href="yii-bootstrap-activefield.html">yii\bootstrap\ActiveField</a></td>
    </tr>
            <tr class="inherited" id="className()">
        <td><a href="yii-base-object.html#className()-detail">className()</a></td>
        <td>Returns the fully qualified name of this class.</td>
        <td><a href="yii-base-object.html">yii\base\Object</a></td>
    </tr>
                <tr class="inherited" id="detachBehavior()">
        <td><a href="yii-base-component.html#detachBehavior()-detail">detachBehavior()</a></td>
        <td>Detaches a behavior from the component.</td>
        <td><a href="yii-base-component.html">yii\base\Component</a></td>
    </tr>
            <tr class="inherited" id="detachBehaviors()">
        <td><a href="yii-base-component.html#detachBehaviors()-detail">detachBehaviors()</a></td>
        <td>Detaches all behaviors from the component.</td>
        <td><a href="yii-base-component.html">yii\base\Component</a></td>
    </tr>
            <tr class="inherited" id="dropDownList()">
        <td><a href="yii-widgets-activefield.html#dropDownList()-detail">dropDownList()</a></td>
        <td>Renders a drop-down list.</td>
        <td><a href="yii-widgets-activefield.html">yii\widgets\ActiveField</a></td>
    </tr>
            <tr class="inherited" id="end()">
        <td><a href="yii-widgets-activefield.html#end()-detail">end()</a></td>
        <td>Renders the closing tag of the field container.</td>
        <td><a href="yii-widgets-activefield.html">yii\widgets\ActiveField</a></td>
    </tr>
            <tr class="inherited" id="ensureBehaviors()">
        <td><a href="yii-base-component.html#ensureBehaviors()-detail">ensureBehaviors()</a></td>
        <td>Makes sure that the behaviors declared in <a href="yii-base-component.html#behaviors()-detail">behaviors()</a> are attached to this component.</td>
        <td><a href="yii-base-component.html">yii\base\Component</a></td>
    </tr>
            <tr class="inherited" id="error()">
        <td><a href="yii-widgets-activefield.html#error()-detail">error()</a></td>
        <td>Generates a tag that contains the first validation error of <a href="yii-widgets-activefield.html#$attribute-detail">$attribute</a>.</td>
        <td><a href="yii-widgets-activefield.html">yii\widgets\ActiveField</a></td>
    </tr>
            <tr class="inherited" id="fileInput()">
        <td><a href="yii-widgets-activefield.html#fileInput()-detail">fileInput()</a></td>
        <td>Renders a file input.</td>
        <td><a href="yii-widgets-activefield.html">yii\widgets\ActiveField</a></td>
    </tr>
            <tr class="inherited" id="getBehavior()">
        <td><a href="yii-base-component.html#getBehavior()-detail">getBehavior()</a></td>
        <td>Returns the named behavior object.</td>
        <td><a href="yii-base-component.html">yii\base\Component</a></td>
    </tr>
            <tr class="inherited" id="getBehaviors()">
        <td><a href="yii-base-component.html#getBehaviors()-detail">getBehaviors()</a></td>
        <td>Returns all behaviors attached to this component.</td>
        <td><a href="yii-base-component.html">yii\base\Component</a></td>
    </tr>
                    <tr class="inherited" id="hasEventHandlers()">
        <td><a href="yii-base-component.html#hasEventHandlers()-detail">hasEventHandlers()</a></td>
        <td>Returns a value indicating whether there is any handler attached to the named event.</td>
        <td><a href="yii-base-component.html">yii\base\Component</a></td>
    </tr>
            <tr class="inherited" id="hasMethod()">
        <td><a href="yii-base-component.html#hasMethod()-detail">hasMethod()</a></td>
        <td>Returns a value indicating whether a method is defined.</td>
        <td><a href="yii-base-component.html">yii\base\Component</a></td>
    </tr>
            <tr class="inherited" id="hasProperty()">
        <td><a href="yii-base-component.html#hasProperty()-detail">hasProperty()</a></td>
        <td>Returns a value indicating whether a property is defined for this component.</td>
        <td><a href="yii-base-component.html">yii\base\Component</a></td>
    </tr>
            <tr class="inherited" id="hiddenInput()">
        <td><a href="yii-widgets-activefield.html#hiddenInput()-detail">hiddenInput()</a></td>
        <td>Renders a hidden input.</td>
        <td><a href="yii-widgets-activefield.html">yii\widgets\ActiveField</a></td>
    </tr>
            <tr class="inherited" id="hint()">
        <td><a href="yii-widgets-activefield.html#hint()-detail">hint()</a></td>
        <td>Renders the hint tag.</td>
        <td><a href="yii-widgets-activefield.html">yii\widgets\ActiveField</a></td>
    </tr>
            <tr class="inherited" id="init()">
        <td><a href="yii-base-object.html#init()-detail">init()</a></td>
        <td>Initializes the object.</td>
        <td><a href="yii-base-object.html">yii\base\Object</a></td>
    </tr>
            <tr id="inline()">
        <td><a href="yii-bootstrap-activefield.html#inline()-detail">inline()</a></td>
        <td></td>
        <td><a href="yii-bootstrap-activefield.html">yii\bootstrap\ActiveField</a></td>
    </tr>
            <tr class="inherited" id="input()">
        <td><a href="yii-widgets-activefield.html#input()-detail">input()</a></td>
        <td>Renders an input tag.</td>
        <td><a href="yii-widgets-activefield.html">yii\widgets\ActiveField</a></td>
    </tr>
            <tr id="label()">
        <td><a href="yii-bootstrap-activefield.html#label()-detail">label()</a></td>
        <td>Generates a label tag for <a href="yii-widgets-activefield.html#$attribute-detail">$attribute</a>.</td>
        <td><a href="yii-bootstrap-activefield.html">yii\bootstrap\ActiveField</a></td>
    </tr>
            <tr class="inherited" id="listBox()">
        <td><a href="yii-widgets-activefield.html#listBox()-detail">listBox()</a></td>
        <td>Renders a list box.</td>
        <td><a href="yii-widgets-activefield.html">yii\widgets\ActiveField</a></td>
    </tr>
            <tr class="inherited" id="off()">
        <td><a href="yii-base-component.html#off()-detail">off()</a></td>
        <td>Detaches an existing event handler from this component.</td>
        <td><a href="yii-base-component.html">yii\base\Component</a></td>
    </tr>
            <tr class="inherited" id="on()">
        <td><a href="yii-base-component.html#on()-detail">on()</a></td>
        <td>Attaches an event handler to an event.</td>
        <td><a href="yii-base-component.html">yii\base\Component</a></td>
    </tr>
            <tr class="inherited" id="passwordInput()">
        <td><a href="yii-widgets-activefield.html#passwordInput()-detail">passwordInput()</a></td>
        <td>Renders a password input.</td>
        <td><a href="yii-widgets-activefield.html">yii\widgets\ActiveField</a></td>
    </tr>
            <tr id="radio()">
        <td><a href="yii-bootstrap-activefield.html#radio()-detail">radio()</a></td>
        <td>Renders a radio button.</td>
        <td><a href="yii-bootstrap-activefield.html">yii\bootstrap\ActiveField</a></td>
    </tr>
            <tr id="radioList()">
        <td><a href="yii-bootstrap-activefield.html#radioList()-detail">radioList()</a></td>
        <td>Renders a list of radio buttons.</td>
        <td><a href="yii-bootstrap-activefield.html">yii\bootstrap\ActiveField</a></td>
    </tr>
            <tr id="render()">
        <td><a href="yii-bootstrap-activefield.html#render()-detail">render()</a></td>
        <td>Renders the whole field.</td>
        <td><a href="yii-bootstrap-activefield.html">yii\bootstrap\ActiveField</a></td>
    </tr>
                <tr id="staticControl()">
        <td><a href="yii-bootstrap-activefield.html#staticControl()-detail">staticControl()</a></td>
        <td>Renders Bootstrap static form control.</td>
        <td><a href="yii-bootstrap-activefield.html">yii\bootstrap\ActiveField</a></td>
    </tr>
            <tr class="inherited" id="textInput()">
        <td><a href="yii-widgets-activefield.html#textInput()-detail">textInput()</a></td>
        <td>Renders a text input.</td>
        <td><a href="yii-widgets-activefield.html">yii\widgets\ActiveField</a></td>
    </tr>
            <tr class="inherited" id="textarea()">
        <td><a href="yii-widgets-activefield.html#textarea()-detail">textarea()</a></td>
        <td>Renders a text area.</td>
        <td><a href="yii-widgets-activefield.html">yii\widgets\ActiveField</a></td>
    </tr>
            <tr class="inherited" id="trigger()">
        <td><a href="yii-base-component.html#trigger()-detail">trigger()</a></td>
        <td>Triggers an event.</td>
        <td><a href="yii-base-component.html">yii\base\Component</a></td>
    </tr>
            <tr class="inherited" id="widget()">
        <td><a href="yii-widgets-activefield.html#widget()-detail">widget()</a></td>
        <td>Renders a widget as the input of the field.</td>
        <td><a href="yii-widgets-activefield.html">yii\widgets\ActiveField</a></td>
    </tr>
    </table>
</div>

<div class="summary doc-method">
<h2>Protected Methods</h2>

<p><a href="#" class="toggle">Hide inherited methods</a></p>

<table class="summary-table table table-striped table-bordered table-hover">
<colgroup>
    <col class="col-method" />
    <col class="col-description" />
    <col class="col-defined" />
</colgroup>
<tr>
  <th>Method</th><th>Description</th><th>Defined By</th>
</tr>
                                        <tr class="inherited" id="adjustLabelFor()">
        <td><a href="yii-widgets-activefield.html#adjustLabelFor()-detail">adjustLabelFor()</a></td>
        <td>Adjusts the "for" attribute for the label based on the input options.</td>
        <td><a href="yii-widgets-activefield.html">yii\widgets\ActiveField</a></td>
    </tr>
                                                <tr id="createLayoutConfig()">
        <td><a href="yii-bootstrap-activefield.html#createLayoutConfig()-detail">createLayoutConfig()</a></td>
        <td></td>
        <td><a href="yii-bootstrap-activefield.html">yii\bootstrap\ActiveField</a></td>
    </tr>
                                                <tr class="inherited" id="getClientOptions()">
        <td><a href="yii-widgets-activefield.html#getClientOptions()-detail">getClientOptions()</a></td>
        <td>Returns the JS options for the field.</td>
        <td><a href="yii-widgets-activefield.html">yii\widgets\ActiveField</a></td>
    </tr>
            <tr class="inherited" id="getInputId()">
        <td><a href="yii-widgets-activefield.html#getInputId()-detail">getInputId()</a></td>
        <td>Returns the HTML <code>id</code> of the input element of this form field.</td>
        <td><a href="yii-widgets-activefield.html">yii\widgets\ActiveField</a></td>
    </tr>
                                                                            <tr id="renderLabelParts()">
        <td><a href="yii-bootstrap-activefield.html#renderLabelParts()-detail">renderLabelParts()</a></td>
        <td></td>
        <td><a href="yii-bootstrap-activefield.html">yii\bootstrap\ActiveField</a></td>
    </tr>
                        </table>
</div>

<a id="events"></a>

<a id="constants"></a>

<h2>Property Details</h2>

<div class="property-doc">

    <div class="detail-header h3" id="$checkboxTemplate-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-bootstrap-activefield.html#$checkboxTemplate-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2-bootstrap/edit/master/ActiveField.php#L117" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2-bootstrap/blob/master/ActiveField.php#L117" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        $checkboxTemplate        <span class="detail-header-tag small">
            public                                                property
                    </span>
    </div>

    <div class="doc-description">
        <p>The template for checkboxes in default layout</p>

            </div>

    <div class="signature"><span class="signature-defs">public</span> <span class="signature-type"><a href="http://www.php.net/language.types.string">string</a></span> <a href="yii-bootstrap-activefield.html#$checkboxTemplate-detail">$checkboxTemplate</a> <span style="color: #0000BB"></span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">"&lt;div&nbsp;class=\"checkbox\"&gt;\n{beginLabel}\n{input}\n{labelTitle}\n{endLabel}\n{error}\n{hint}\n&lt;/div&gt;"</span></div>


    <div class="detail-header h3" id="$enableError-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-bootstrap-activefield.html#$enableError-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2-bootstrap/edit/master/ActiveField.php#L141" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2-bootstrap/blob/master/ActiveField.php#L141" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        $enableError        <span class="detail-header-tag small">
            public                                                property
                    </span>
    </div>

    <div class="doc-description">
        <p>Whether to render the error. Default is <code>true</code> except for layout <code>inline</code>.</p>

            </div>

    <div class="signature"><span class="signature-defs">public</span> <span class="signature-type"><a href="http://www.php.net/language.types.boolean">boolean</a></span> <a href="yii-bootstrap-activefield.html#$enableError-detail">$enableError</a> <span style="color: #0000BB"></span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">true</span></div>


    <div class="detail-header h3" id="$enableLabel-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-bootstrap-activefield.html#$enableLabel-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2-bootstrap/edit/master/ActiveField.php#L145" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2-bootstrap/blob/master/ActiveField.php#L145" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        $enableLabel        <span class="detail-header-tag small">
            public                                                property
                    </span>
    </div>

    <div class="doc-description">
        <p>Whether to render the label. Default is <code>true</code>.</p>

            </div>

    <div class="signature"><span class="signature-defs">public</span> <span class="signature-type"><a href="http://www.php.net/language.types.boolean">boolean</a></span> <a href="yii-bootstrap-activefield.html#$enableLabel-detail">$enableLabel</a> <span style="color: #0000BB"></span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">true</span></div>


    <div class="detail-header h3" id="$horizontalCheckboxTemplate-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-bootstrap-activefield.html#$horizontalCheckboxTemplate-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2-bootstrap/edit/master/ActiveField.php#L125" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2-bootstrap/blob/master/ActiveField.php#L125" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        $horizontalCheckboxTemplate        <span class="detail-header-tag small">
            public                                                property
                    </span>
    </div>

    <div class="doc-description">
        <p>The template for checkboxes in horizontal layout</p>

            </div>

    <div class="signature"><span class="signature-defs">public</span> <span class="signature-type"><a href="http://www.php.net/language.types.string">string</a></span> <a href="yii-bootstrap-activefield.html#$horizontalCheckboxTemplate-detail">$horizontalCheckboxTemplate</a> <span style="color: #0000BB"></span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">"{beginWrapper}\n&lt;div&nbsp;class=\"checkbox\"&gt;\n{beginLabel}\n{input}\n{labelTitle}\n{endLabel}\n&lt;/div&gt;\n{error}\n{endWrapper}\n{hint}"</span></div>


    <div class="detail-header h3" id="$horizontalCssClasses-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-bootstrap-activefield.html#$horizontalCssClasses-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2-bootstrap/edit/master/ActiveField.php#L113" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2-bootstrap/blob/master/ActiveField.php#L113" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        $horizontalCssClasses        <span class="detail-header-tag small">
            public                                                property
                    </span>
    </div>

    <div class="doc-description">
        <p>CSS grid classes for horizontal layout. This must be an array with these keys:</p>
<ul>
<li>'offset' the offset grid class to append to the wrapper if no label is rendered</li>
<li>'label' the label grid class</li>
<li>'wrapper' the wrapper grid class</li>
<li>'error' the error grid class</li>
<li>'hint' the hint grid class</li>
</ul>

            </div>

    <div class="signature"><span class="signature-defs">public</span> <span class="signature-type"><a href="http://www.php.net/language.types.null">null</a>|<a href="http://www.php.net/language.types.array">array</a></span> <a href="yii-bootstrap-activefield.html#$horizontalCssClasses-detail">$horizontalCssClasses</a> <span style="color: #0000BB"></span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">null</span></div>


    <div class="detail-header h3" id="$horizontalRadioTemplate-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-bootstrap-activefield.html#$horizontalRadioTemplate-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2-bootstrap/edit/master/ActiveField.php#L129" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2-bootstrap/blob/master/ActiveField.php#L129" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        $horizontalRadioTemplate        <span class="detail-header-tag small">
            public                                                property
                    </span>
    </div>

    <div class="doc-description">
        <p>The template for radio buttons in horizontal layout</p>

            </div>

    <div class="signature"><span class="signature-defs">public</span> <span class="signature-type"><a href="http://www.php.net/language.types.string">string</a></span> <a href="yii-bootstrap-activefield.html#$horizontalRadioTemplate-detail">$horizontalRadioTemplate</a> <span style="color: #0000BB"></span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">"{beginWrapper}\n&lt;div&nbsp;class=\"radio\"&gt;\n{beginLabel}\n{input}\n{labelTitle}\n{endLabel}\n&lt;/div&gt;\n{error}\n{endWrapper}\n{hint}"</span></div>


    <div class="detail-header h3" id="$inline-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-bootstrap-activefield.html#$inline-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2-bootstrap/edit/master/ActiveField.php#L96" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2-bootstrap/blob/master/ActiveField.php#L96" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        $inline        <span class="detail-header-tag small">
            public                                                property
                    </span>
    </div>

    <div class="doc-description">
        <p>Whether to render <a href="yii-bootstrap-activefield.html#checkboxList()-detail">checkboxList()</a> and <a href="yii-bootstrap-activefield.html#radioList()-detail">radioList()</a> inline.</p>

            </div>

    <div class="signature"><span class="signature-defs">public</span> <span class="signature-type"><a href="http://www.php.net/language.types.boolean">boolean</a></span> <a href="yii-bootstrap-activefield.html#$inline-detail">$inline</a> <span style="color: #0000BB"></span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">false</span></div>


    <div class="detail-header h3" id="$inlineCheckboxListTemplate-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-bootstrap-activefield.html#$inlineCheckboxListTemplate-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2-bootstrap/edit/master/ActiveField.php#L133" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2-bootstrap/blob/master/ActiveField.php#L133" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        $inlineCheckboxListTemplate        <span class="detail-header-tag small">
            public                                                property
                    </span>
    </div>

    <div class="doc-description">
        <p>The template for inline checkboxLists</p>

            </div>

    <div class="signature"><span class="signature-defs">public</span> <span class="signature-type"><a href="http://www.php.net/language.types.string">string</a></span> <a href="yii-bootstrap-activefield.html#$inlineCheckboxListTemplate-detail">$inlineCheckboxListTemplate</a> <span style="color: #0000BB"></span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">"{label}\n{beginWrapper}\n{input}\n{error}\n{endWrapper}\n{hint}"</span></div>


    <div class="detail-header h3" id="$inlineRadioListTemplate-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-bootstrap-activefield.html#$inlineRadioListTemplate-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2-bootstrap/edit/master/ActiveField.php#L137" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2-bootstrap/blob/master/ActiveField.php#L137" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        $inlineRadioListTemplate        <span class="detail-header-tag small">
            public                                                property
                    </span>
    </div>

    <div class="doc-description">
        <p>The template for inline radioLists</p>

            </div>

    <div class="signature"><span class="signature-defs">public</span> <span class="signature-type"><a href="http://www.php.net/language.types.string">string</a></span> <a href="yii-bootstrap-activefield.html#$inlineRadioListTemplate-detail">$inlineRadioListTemplate</a> <span style="color: #0000BB"></span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">"{label}\n{beginWrapper}\n{input}\n{error}\n{endWrapper}\n{hint}"</span></div>


    <div class="detail-header h3" id="$inputTemplate-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-bootstrap-activefield.html#$inputTemplate-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2-bootstrap/edit/master/ActiveField.php#L100" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2-bootstrap/blob/master/ActiveField.php#L100" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        $inputTemplate        <span class="detail-header-tag small">
            public                                                property
                    </span>
    </div>

    <div class="doc-description">
        <p>Optional template to render the <code>{input}</code> placeholder content</p>

            </div>

    <div class="signature"><span class="signature-defs">public</span> <span class="signature-type"><a href="http://www.php.net/language.types.string">string</a>|<a href="http://www.php.net/language.types.null">null</a></span> <a href="yii-bootstrap-activefield.html#$inputTemplate-detail">$inputTemplate</a> <span style="color: #0000BB"></span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">null</span></div>


    <div class="detail-header h3" id="$radioTemplate-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-bootstrap-activefield.html#$radioTemplate-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2-bootstrap/edit/master/ActiveField.php#L121" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2-bootstrap/blob/master/ActiveField.php#L121" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        $radioTemplate        <span class="detail-header-tag small">
            public                                                property
                    </span>
    </div>

    <div class="doc-description">
        <p>The template for radios in default layout</p>

            </div>

    <div class="signature"><span class="signature-defs">public</span> <span class="signature-type"><a href="http://www.php.net/language.types.string">string</a></span> <a href="yii-bootstrap-activefield.html#$radioTemplate-detail">$radioTemplate</a> <span style="color: #0000BB"></span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">"&lt;div&nbsp;class=\"radio\"&gt;\n{beginLabel}\n{input}\n{labelTitle}\n{endLabel}\n{error}\n{hint}\n&lt;/div&gt;"</span></div>


    <div class="detail-header h3" id="$wrapperOptions-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-bootstrap-activefield.html#$wrapperOptions-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2-bootstrap/edit/master/ActiveField.php#L104" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2-bootstrap/blob/master/ActiveField.php#L104" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        $wrapperOptions        <span class="detail-header-tag small">
            public                                                property
                    </span>
    </div>

    <div class="doc-description">
        <p>Options for the wrapper tag, used in the <code>{beginWrapper}</code> placeholder</p>

            </div>

    <div class="signature"><span class="signature-defs">public</span> <span class="signature-type"><a href="http://www.php.net/language.types.array">array</a></span> <a href="yii-bootstrap-activefield.html#$wrapperOptions-detail">$wrapperOptions</a> <span style="color: #0000BB"></span><span style="color: #007700">=&nbsp;[]</span></div>

</div>
<h2>Method Details</h2>

<div class="method-doc">

    <div class="detail-header h3" id="__construct()-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-bootstrap-activefield.html#__construct()-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2-bootstrap/edit/master/ActiveField.php#L151" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2-bootstrap/blob/master/ActiveField.php#L151" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        __construct()
        <span class="detail-header-tag small">
            public                                    method
                    </span>
    </div>

    <div class="doc-description">
        <p><strong>Constructor.</strong></p>

        <p>The default implementation does two things:</p>
<ul>
<li>Initializes the object with the given configuration <code>$config</code>.</li>
<li>Call <a href="yii-base-object.html#init()-detail">init()</a>.</li>
</ul>
<p>If this method is overridden in a child class, it is recommended that</p>
<ul>
<li>the last parameter of the constructor is a configuration array, like <code>$config</code> here.</li>
<li>call the parent implementation at the end of the constructor.</li>
</ul>

            </div>

    <table class="detail-table table table-striped table-bordered table-hover">
        <tr><td colspan="3" class="signature"><span class="signature-defs">public</span> <span class="signature-type">void</span> <strong><a href="yii-bootstrap-activefield.html#__construct()-detail">__construct</a></strong> ( <span style="color: #0000BB">$config&nbsp;</span><span style="color: #007700">=&nbsp;[]</span> )</td></tr>
                                    <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$config</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.array">array</a></td>
                  <td class="param-desc-col"><p>Name-value pairs that will be used to initialize the object properties</p>
</td>
                </tr>
                                                </table>

<!--	-->

    <div class="detail-header h3" id="checkbox()-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-bootstrap-activefield.html#checkbox()-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2-bootstrap/edit/master/ActiveField.php#L193" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2-bootstrap/blob/master/ActiveField.php#L193" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        checkbox()
        <span class="detail-header-tag small">
            public                                    method
                    </span>
    </div>

    <div class="doc-description">
        <p><strong>Renders a checkbox.</strong></p>

        <p>This method will generate the "checked" tag attribute according to the model attribute value.</p>

            </div>

    <table class="detail-table table table-striped table-bordered table-hover">
        <tr><td colspan="3" class="signature"><span class="signature-defs">public</span> <span class="signature-type"><a href="yii-bootstrap-activefield.html">$this</a></span> <strong><a href="yii-bootstrap-activefield.html#checkbox()-detail">checkbox</a></strong> ( <span style="color: #0000BB">$options&nbsp;</span><span style="color: #007700">=&nbsp;[]</span>, <span style="color: #0000BB">$enclosedByLabel&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">true</span> )</td></tr>
                                    <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$options</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.array">array</a></td>
                  <td class="param-desc-col"><p>The tag options in terms of name-value pairs. The following options are specially handled:</p>
<ul>
<li>uncheck: string, the value associated with the uncheck state of the radio button. If not set,
it will take the default value '0'. This method will render a hidden input so that if the radio button
is not checked and is submitted, the value of this attribute will still be submitted to the server
via the hidden input. If you do not want any hidden input, you should explicitly set this option as null.</li>
<li>label: string, a label displayed next to the checkbox. It will NOT be HTML-encoded. Therefore you can pass
in HTML code such as an image tag. If this is coming from end users, you should <a href="yii-helpers-basehtml.html#encode()-detail">encode</a> it to prevent XSS attacks.
When this option is specified, the checkbox will be enclosed by a label tag. If you do not want any label, you should
explicitly set this option as null.</li>
<li>labelOptions: array, the HTML attributes for the label tag. This is only used when the "label" option is specified.</li>
</ul>
<p>The rest of the options will be rendered as the attributes of the resulting tag. The values will
be HTML-encoded using <a href="yii-helpers-basehtml.html#encode()-detail">yii\bootstrap\Html::encode()</a>. If a value is null, the corresponding attribute will not be rendered.</p>
<p>If you set a custom <code>id</code> for the input element, you may need to adjust the <a href="yii-widgets-activefield.html#$selectors-detail">$selectors</a> accordingly.</p>
</td>
                </tr>
                            <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$enclosedByLabel</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.boolean">boolean</a></td>
                  <td class="param-desc-col"><p>Whether to enclose the checkbox within the label.
If true, the method will still use <a href="yii-widgets-activefield.html#$template-detail">$template</a> to layout the checkbox and the error message
except that the checkbox is enclosed by the label tag.</p>
</td>
                </tr>
                                        <tr>
                  <th class="param-name-col">return</th>
                  <td class="param-type-col"><a href="yii-bootstrap-activefield.html">$this</a></td>
                  <td class="param-desc-col"><p>The field object itself</p>
</td>
                </tr>
                                    </table>

<!--	-->

    <div class="detail-header h3" id="checkboxList()-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-bootstrap-activefield.html#checkboxList()-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2-bootstrap/edit/master/ActiveField.php#L243" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2-bootstrap/blob/master/ActiveField.php#L243" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        checkboxList()
        <span class="detail-header-tag small">
            public                                    method
                    </span>
    </div>

    <div class="doc-description">
        <p><strong>Renders a list of checkboxes.</strong></p>

        <p>A checkbox list allows multiple selection, like <a href="yii-widgets-activefield.html#listBox()-detail">listBox()</a>.
As a result, the corresponding submitted value is an array.
The selection of the checkbox list is taken from the value of the model attribute.</p>

            </div>

    <table class="detail-table table table-striped table-bordered table-hover">
        <tr><td colspan="3" class="signature"><span class="signature-defs">public</span> <span class="signature-type"><a href="yii-bootstrap-activefield.html">$this</a></span> <strong><a href="yii-bootstrap-activefield.html#checkboxList()-detail">checkboxList</a></strong> ( <span style="color: #0000BB">$items</span>, <span style="color: #0000BB">$options&nbsp;</span><span style="color: #007700">=&nbsp;[]</span> )</td></tr>
                                    <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$items</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.array">array</a></td>
                  <td class="param-desc-col"><p>The data item used to generate the checkboxes.
The array values are the labels, while the array keys are the corresponding checkbox values.</p>
</td>
                </tr>
                            <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$options</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.array">array</a></td>
                  <td class="param-desc-col"><p>Options (name =&gt; config) for the checkbox list.
For the list of available options please refer to the <code>$options</code> parameter of <a href="yii-helpers-basehtml.html#activeCheckboxList()-detail">yii\helpers\Html::activeCheckboxList()</a>.</p>
</td>
                </tr>
                                        <tr>
                  <th class="param-name-col">return</th>
                  <td class="param-type-col"><a href="yii-bootstrap-activefield.html">$this</a></td>
                  <td class="param-desc-col"><p>The field object itself</p>
</td>
                </tr>
                                    </table>

<!--	-->

    <div class="detail-header h3" id="createLayoutConfig()-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-bootstrap-activefield.html#createLayoutConfig()-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2-bootstrap/edit/master/ActiveField.php#L347" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2-bootstrap/blob/master/ActiveField.php#L347" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        createLayoutConfig()
        <span class="detail-header-tag small">
            protected                                    method
                    </span>
    </div>

    <div class="doc-description">
        <p><strong></strong></p>

        
            </div>

    <table class="detail-table table table-striped table-bordered table-hover">
        <tr><td colspan="3" class="signature"><span class="signature-defs">protected</span> <span class="signature-type"><a href="http://www.php.net/language.types.array">array</a></span> <strong><a href="yii-bootstrap-activefield.html#createLayoutConfig()-detail">createLayoutConfig</a></strong> ( <span style="color: #0000BB">$instanceConfig</span> )</td></tr>
                                    <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$instanceConfig</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.array">array</a></td>
                  <td class="param-desc-col"><p>The configuration passed to this instance's constructor</p>
</td>
                </tr>
                                        <tr>
                  <th class="param-name-col">return</th>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.array">array</a></td>
                  <td class="param-desc-col"><p>The layout specific default configuration for this instance</p>
</td>
                </tr>
                                    </table>

<!--	-->

    <div class="detail-header h3" id="inline()-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-bootstrap-activefield.html#inline()-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2-bootstrap/edit/master/ActiveField.php#L337" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2-bootstrap/blob/master/ActiveField.php#L337" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        inline()
        <span class="detail-header-tag small">
            public                                    method
                    </span>
    </div>

    <div class="doc-description">
        <p><strong></strong></p>

        
            </div>

    <table class="detail-table table table-striped table-bordered table-hover">
        <tr><td colspan="3" class="signature"><span class="signature-defs">public</span> <span class="signature-type"><a href="yii-bootstrap-activefield.html">$this</a></span> <strong><a href="yii-bootstrap-activefield.html#inline()-detail">inline</a></strong> ( <span style="color: #0000BB">$value&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">true</span> )</td></tr>
                                    <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$value</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.boolean">boolean</a></td>
                  <td class="param-desc-col"><p>Whether to render a inline list</p>
</td>
                </tr>
                                        <tr>
                  <th class="param-name-col">return</th>
                  <td class="param-type-col"><a href="yii-bootstrap-activefield.html">$this</a></td>
                  <td class="param-desc-col"><p>The field object itself
Make sure you call this method before <a href="yii-bootstrap-activefield.html#checkboxList()-detail">checkboxList()</a> or <a href="yii-bootstrap-activefield.html#radioList()-detail">radioList()</a> to have any effect.</p>
</td>
                </tr>
                                    </table>

<!--	-->

    <div class="detail-header h3" id="label()-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-bootstrap-activefield.html#label()-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2-bootstrap/edit/master/ActiveField.php#L317" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2-bootstrap/blob/master/ActiveField.php#L317" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        label()
        <span class="detail-header-tag small">
            public                                    method
                    </span>
    </div>

    <div class="doc-description">
        <p><strong>Generates a label tag for <a href="yii-widgets-activefield.html#$attribute-detail">$attribute</a>.</strong></p>

        
            </div>

    <table class="detail-table table table-striped table-bordered table-hover">
        <tr><td colspan="3" class="signature"><span class="signature-defs">public</span> <span class="signature-type"><a href="yii-bootstrap-activefield.html">$this</a></span> <strong><a href="yii-bootstrap-activefield.html#label()-detail">label</a></strong> ( <span style="color: #0000BB">$label&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">null</span>, <span style="color: #0000BB">$options&nbsp;</span><span style="color: #007700">=&nbsp;[]</span> )</td></tr>
                                    <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$label</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.string">string</a>|<a href="http://www.php.net/language.types.boolean">boolean</a></td>
                  <td class="param-desc-col"><p>The label to use. If null, the label will be generated via <span class="broken-link">\yii\bootstrap\Model::getAttributeLabel()</span>.
If false, the generated field will not contain the label part.
Note that this will NOT be <a href="yii-helpers-basehtml.html#encode()-detail">encoded</a>.</p>
</td>
                </tr>
                            <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$options</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.array">array</a></td>
                  <td class="param-desc-col"><p>The tag options in terms of name-value pairs. It will be merged with <a href="yii-widgets-activefield.html#$labelOptions-detail">$labelOptions</a>.
The options will be rendered as the attributes of the resulting tag. The values will be HTML-encoded
using <a href="yii-helpers-basehtml.html#encode()-detail">yii\bootstrap\Html::encode()</a>. If a value is null, the corresponding attribute will not be rendered.</p>
</td>
                </tr>
                                        <tr>
                  <th class="param-name-col">return</th>
                  <td class="param-type-col"><a href="yii-bootstrap-activefield.html">$this</a></td>
                  <td class="param-desc-col"><p>The field object itself</p>
</td>
                </tr>
                                    </table>

<!--	-->

    <div class="detail-header h3" id="radio()-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-bootstrap-activefield.html#radio()-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2-bootstrap/edit/master/ActiveField.php#L218" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2-bootstrap/blob/master/ActiveField.php#L218" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        radio()
        <span class="detail-header-tag small">
            public                                    method
                    </span>
    </div>

    <div class="doc-description">
        <p><strong>Renders a radio button.</strong></p>

        <p>This method will generate the "checked" tag attribute according to the model attribute value.</p>

            </div>

    <table class="detail-table table table-striped table-bordered table-hover">
        <tr><td colspan="3" class="signature"><span class="signature-defs">public</span> <span class="signature-type"><a href="yii-bootstrap-activefield.html">$this</a></span> <strong><a href="yii-bootstrap-activefield.html#radio()-detail">radio</a></strong> ( <span style="color: #0000BB">$options&nbsp;</span><span style="color: #007700">=&nbsp;[]</span>, <span style="color: #0000BB">$enclosedByLabel&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">true</span> )</td></tr>
                                    <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$options</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.array">array</a></td>
                  <td class="param-desc-col"><p>The tag options in terms of name-value pairs. The following options are specially handled:</p>
<ul>
<li>uncheck: string, the value associated with the uncheck state of the radio button. If not set,
it will take the default value '0'. This method will render a hidden input so that if the radio button
is not checked and is submitted, the value of this attribute will still be submitted to the server
via the hidden input. If you do not want any hidden input, you should explicitly set this option as null.</li>
<li>label: string, a label displayed next to the radio button. It will NOT be HTML-encoded. Therefore you can pass
in HTML code such as an image tag. If this is coming from end users, you should <a href="yii-helpers-basehtml.html#encode()-detail">encode</a> it to prevent XSS attacks.
When this option is specified, the radio button will be enclosed by a label tag. If you do not want any label, you should
explicitly set this option as null.</li>
<li>labelOptions: array, the HTML attributes for the label tag. This is only used when the "label" option is specified.</li>
</ul>
<p>The rest of the options will be rendered as the attributes of the resulting tag. The values will
be HTML-encoded using <a href="yii-helpers-basehtml.html#encode()-detail">yii\bootstrap\Html::encode()</a>. If a value is null, the corresponding attribute will not be rendered.</p>
<p>If you set a custom <code>id</code> for the input element, you may need to adjust the <a href="yii-widgets-activefield.html#$selectors-detail">$selectors</a> accordingly.</p>
</td>
                </tr>
                            <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$enclosedByLabel</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.boolean">boolean</a></td>
                  <td class="param-desc-col"><p>Whether to enclose the radio within the label.
If true, the method will still use <a href="yii-widgets-activefield.html#$template-detail">$template</a> to layout the checkbox and the error message
except that the radio is enclosed by the label tag.</p>
</td>
                </tr>
                                        <tr>
                  <th class="param-name-col">return</th>
                  <td class="param-type-col"><a href="yii-bootstrap-activefield.html">$this</a></td>
                  <td class="param-desc-col"><p>The field object itself</p>
</td>
                </tr>
                                    </table>

<!--	-->

    <div class="detail-header h3" id="radioList()-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-bootstrap-activefield.html#radioList()-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2-bootstrap/edit/master/ActiveField.php#L271" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2-bootstrap/blob/master/ActiveField.php#L271" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        radioList()
        <span class="detail-header-tag small">
            public                                    method
                    </span>
    </div>

    <div class="doc-description">
        <p><strong>Renders a list of radio buttons.</strong></p>

        <p>A radio button list is like a checkbox list, except that it only allows single selection.
The selection of the radio buttons is taken from the value of the model attribute.</p>

            </div>

    <table class="detail-table table table-striped table-bordered table-hover">
        <tr><td colspan="3" class="signature"><span class="signature-defs">public</span> <span class="signature-type"><a href="yii-bootstrap-activefield.html">$this</a></span> <strong><a href="yii-bootstrap-activefield.html#radioList()-detail">radioList</a></strong> ( <span style="color: #0000BB">$items</span>, <span style="color: #0000BB">$options&nbsp;</span><span style="color: #007700">=&nbsp;[]</span> )</td></tr>
                                    <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$items</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.array">array</a></td>
                  <td class="param-desc-col"><p>The data item used to generate the radio buttons.
The array values are the labels, while the array keys are the corresponding radio values.</p>
</td>
                </tr>
                            <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$options</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.array">array</a></td>
                  <td class="param-desc-col"><p>Options (name =&gt; config) for the radio button list.
For the list of available options please refer to the <code>$options</code> parameter of <a href="yii-helpers-basehtml.html#activeRadioList()-detail">yii\helpers\Html::activeRadioList()</a>.</p>
</td>
                </tr>
                                        <tr>
                  <th class="param-name-col">return</th>
                  <td class="param-type-col"><a href="yii-bootstrap-activefield.html">$this</a></td>
                  <td class="param-desc-col"><p>The field object itself</p>
</td>
                </tr>
                                    </table>

<!--	-->

    <div class="detail-header h3" id="render()-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-bootstrap-activefield.html#render()-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2-bootstrap/edit/master/ActiveField.php#L161" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2-bootstrap/blob/master/ActiveField.php#L161" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        render()
        <span class="detail-header-tag small">
            public                                    method
                    </span>
    </div>

    <div class="doc-description">
        <p><strong>Renders the whole field.</strong></p>

        <p>This method will generate the label, error tag, input tag and hint tag (if any), and
assemble them into HTML according to <a href="yii-widgets-activefield.html#$template-detail">$template</a>.</p>

            </div>

    <table class="detail-table table table-striped table-bordered table-hover">
        <tr><td colspan="3" class="signature"><span class="signature-defs">public</span> <span class="signature-type"><a href="http://www.php.net/language.types.string">string</a></span> <strong><a href="yii-bootstrap-activefield.html#render()-detail">render</a></strong> ( <span style="color: #0000BB">$content&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">null</span> )</td></tr>
                                    <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$content</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.string">string</a>|<a href="http://www.php.net/language.types.callable">callable</a></td>
                  <td class="param-desc-col"><p>The content within the field container.
If null (not set), the default methods will be called to generate the label, error tag and input tag,
and use them as the content.
If a callable, it will be called to generate the content. The signature of the callable should be:</p>
<pre><code class="hljs php language-php"><span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-params">(<span class="hljs-variable">$field</span>)</span> </span>{
    <span class="hljs-keyword">return</span> <span class="hljs-variable">$html</span>;
}
</code></pre>
</td>
                </tr>
                                        <tr>
                  <th class="param-name-col">return</th>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.string">string</a></td>
                  <td class="param-desc-col"><p>The rendering result</p>
</td>
                </tr>
                                    </table>

<!--	-->

    <div class="detail-header h3" id="renderLabelParts()-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-bootstrap-activefield.html#renderLabelParts()-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2-bootstrap/edit/master/ActiveField.php#L394" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2-bootstrap/blob/master/ActiveField.php#L394" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        renderLabelParts()
        <span class="detail-header-tag small">
            protected                                    method
                    </span>
    </div>

    <div class="doc-description">
        <p><strong></strong></p>

        
            </div>

    <table class="detail-table table table-striped table-bordered table-hover">
        <tr><td colspan="3" class="signature"><span class="signature-defs">protected</span> <span class="signature-type">void</span> <strong><a href="yii-bootstrap-activefield.html#renderLabelParts()-detail">renderLabelParts</a></strong> ( <span style="color: #0000BB">$label&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">null</span>, <span style="color: #0000BB">$options&nbsp;</span><span style="color: #007700">=&nbsp;[]</span> )</td></tr>
                                    <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$label</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.string">string</a>|<a href="http://www.php.net/language.types.null">null</a></td>
                  <td class="param-desc-col"><p>The label or null to use model label</p>
</td>
                </tr>
                            <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$options</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.array">array</a></td>
                  <td class="param-desc-col"><p>The tag options</p>
</td>
                </tr>
                                                </table>

<!--	-->

    <div class="detail-header h3" id="staticControl()-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-bootstrap-activefield.html#staticControl()-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2-bootstrap/edit/master/ActiveField.php#L307" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2-bootstrap/blob/master/ActiveField.php#L307" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        staticControl()
        <span class="detail-header-tag small">
            public                                    method
                            (available since version 2.0.5)
                    </span>
    </div>

    <div class="doc-description">
        <p><strong>Renders Bootstrap static form control.</strong></p>

        
        <p>See also <a href="http://getbootstrap.com/css/#forms-controls-static">http://getbootstrap.com/css/#forms-controls-static</a>.</p>    </div>

    <table class="detail-table table table-striped table-bordered table-hover">
        <tr><td colspan="3" class="signature"><span class="signature-defs">public</span> <span class="signature-type"><a href="yii-bootstrap-activefield.html">$this</a></span> <strong><a href="yii-bootstrap-activefield.html#staticControl()-detail">staticControl</a></strong> ( <span style="color: #0000BB">$options&nbsp;</span><span style="color: #007700">=&nbsp;[]</span> )</td></tr>
                                    <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$options</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.array">array</a></td>
                  <td class="param-desc-col"><p>The tag options in terms of name-value pairs. These will be rendered as
the attributes of the resulting tag. There are also a special options:</p>
<ul>
<li>encode: boolean, whether value should be HTML-encoded or not.</li>
</ul>
</td>
                </tr>
                                        <tr>
                  <th class="param-name-col">return</th>
                  <td class="param-type-col"><a href="yii-bootstrap-activefield.html">$this</a></td>
                  <td class="param-desc-col"><p>The field object itself</p>
</td>
                </tr>
                                    </table>

<!--	-->
</div>
        </div>
</div>

<script type="text/javascript">
    /*<![CDATA[*/
    $("a.toggle").on('click', function () {
        var $this = $(this);
        if ($this.hasClass('properties-hidden')) {
            $this.text($this.text().replace(/Show/,'Hide'));
            $this.parents(".summary").find(".inherited").show();
            $this.removeClass('properties-hidden');
        } else {
            $this.text($this.text().replace(/Hide/,'Show'));
            $this.parents(".summary").find(".inherited").hide();
            $this.addClass('properties-hidden');
        }

        return false;
    });
    /*
     $(".sourceCode a.show").toggle(function () {
     $(this).text($(this).text().replace(/show/,'hide'));
     $(this).parents(".sourceCode").find("div.code").show();
     },function () {
     $(this).text($(this).text().replace(/hide/,'show'));
     $(this).parents(".sourceCode").find("div.code").hide();
     });
     $("a.sourceLink").click(function () {
     $(this).attr('target','_blank');
     });
     */
    /*]]>*/
</script>


</div>

<footer class="footer">
        <p class="pull-right"><small>Page generated on Sat, 09 Jul 2016 12:15:52 +0000</small></p>
    Powered by <a href="http://www.yiiframework.com/" rel="external">Yii Framework</a></footer>

<script type="text/javascript">jQuery(document).ready(function () {
    var shiftWindow = function () { scrollBy(0, -50) };
    if (location.hash) setTimeout(shiftWindow, 1);
    window.addEventListener("hashchange", shiftWindow);
var element = document.createElement("script");
element.src = "./jssearch.index.js";
document.body.appendChild(element);

var searchBox = $('#searchbox');

// search when typing in search field
searchBox.on("keyup", function(event) {
    var query = $(this).val();

    if (query == '' || event.which == 27) {
        $('#search-resultbox').hide();
        return;
    } else if (event.which == 13) {
        var selectedLink = $('#search-resultbox a.selected');
        if (selectedLink.length != 0) {
            document.location = selectedLink.attr('href');
            return;
        }
    } else if (event.which == 38 || event.which == 40) {
        $('#search-resultbox').show();

        var selected = $('#search-resultbox a.selected');
        if (selected.length == 0) {
            $('#search-results').find('a').first().addClass('selected');
        } else {
            var next;
            if (event.which == 40) {
                next = selected.parent().next().find('a').first();
            } else {
                next = selected.parent().prev().find('a').first();
            }
            if (next.length != 0) {
                var resultbox = $('#search-results');
                var position = next.position();

//              TODO scrolling is buggy and jumps around
//                resultbox.scrollTop(Math.floor(position.top));
//                console.log(position.top);

                selected.removeClass('selected');
                next.addClass('selected');
            }
        }

        return;
    }
    $('#search-resultbox').show();
    $('#search-results').html('<li><span class="no-results">No results</span></li>');

    var result = jssearch.search(query);

    if (result.length > 0) {
        var i = 0;
        var resHtml = '';

        for (var key in result) {
            if (i++ > 20) {
                break;
            }
            resHtml = resHtml +
            '<li><a href="' + result[key].file.u.substr(3) +'"><span class="title">' + result[key].file.t + '</span>' +
            '<span class="description">' + result[key].file.d + '</span></a></li>';
        }
        $('#search-results').html(resHtml);
    }
});

// hide the search results on ESC
$(document).on("keyup", function(event) { if (event.which == 27) { $('#search-resultbox').hide(); } });
// hide search results on click to document
$(document).bind('click', function (e) { $('#search-resultbox').hide(); });
// except the following:
searchBox.bind('click', function(e) { e.stopPropagation(); });
$('#search-resultbox').bind('click', function(e) { e.stopPropagation(); });

});</script></body>
</html>
